package ckw.gui;

import org.eclipse.jface.wizard.Wizard;

import ckw.database.model.Election;

public class WzdAddEditElection extends Wizard {
	
	private boolean addElection;
	private Election election;
	
	private WzdPgAddEditElectionBasicData wzdPgAddEditElectionBasicData;
	private WzdPgAddEditElectionRKWs wzdPgAddEditElectionRKW;
	
	public WzdAddEditElection(boolean addElection, Election election) {
		if (addElection) {
			setWindowTitle("Add Election");
		} else {
			setWindowTitle("Edit Election");
		}
		
		this.addElection = addElection;
		this.election = election;
	}

	@Override
	public void addPages() {
		wzdPgAddEditElectionBasicData = new WzdPgAddEditElectionBasicData(addElection, election);
		addPage(wzdPgAddEditElectionBasicData);
		wzdPgAddEditElectionRKW = new WzdPgAddEditElectionRKWs(addElection, election);
		addPage(wzdPgAddEditElectionRKW);
	}

	@Override
	public boolean performFinish() {
		// TODO
		return false;
	}

}
